$(document).ready(function () {

    $("a.status").unbind("change");
    $("a.status").click(function () {
        var p = this.firstChild;
        if (p.src.match('icon_1.png')) {
            $(p).attr({src: Shop.basePath + "img/icon_0.png", alt: "Activate"});
        } else {
            $(p).attr("src", Shop.basePath + "img/icon_1.png");
            $(p).attr("alt", "Deactivate");
        }
        ;
        $.get(this.href + "?" + new Date().getTime());
        return false;
    });
    $('.busca_form_intranet :input').on('change', function (e) {
        $(this).closest('form').submit();
    });
});
